import React from 'react'
import ReactDOM from 'react-dom/client'
import App from './App.tsx'
import './index.less'

import store from './store/index.ts'
import {Provider} from 'react-redux'
import { PersistGate } from 'redux-persist/integration/react' 
import {persistStore} from 'redux-persist'  
const persistor = persistStore(store) 

ReactDOM.createRoot(document.getElementById('root') as HTMLElement).render(
  <Provider store={store} >
    <PersistGate loading={null} persistor={persistor}>
        {/* <React.StrictMode> */}
          <App />
        {/* </React.StrictMode> */}
    </PersistGate>
  </Provider>
)
